<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<fieldset><legend>患者列表</legend>
<table class="list">
	<thead>
		<tr>
			<th>编&nbsp;&nbsp;号</th>
			<th>姓&nbsp;&nbsp;名</th>
			<th>年&nbsp;&nbsp;龄</th>
			<th>民&nbsp;&nbsp;族</th>
			<th>职&nbsp;&nbsp;业</th>
			<th>电&nbsp;&nbsp;话</th>
			<th>医&nbsp;&nbsp;生</th>
			<th>操&nbsp;&nbsp;作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${patients}" var="patient" varStatus="varStatus">
			<c:set var="tr_class"
				value="${varStatus.index % 2 == 0 ? 'odd' : 'even'}" />
			<tr class="${tr_class}">
				<td><c:out value="${patient.patientId}" /></td>
				<td><c:out value="${patient.patientName}" /></td>
				<td><c:out value="${patient.patientAge}" /></td>
				<td><c:out value="${patient.patientNation}" /></td>
				<td><c:out value="${patient.patientJob}" /></td>
				<td><c:out value="${patient.patientPhone}" /></td>
				<td><c:url value="/patient/view.do" var="patientView">
					<c:param name="patientId" value="${patient.patientId}" />
				</c:url> <a href="${patientView}">[查&nbsp;看]</a></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
</fieldset>
<form id="pageForm" action="${ctx}/" method="post"><input
	type="hidden" name="totalPages" id="totalPages"
	value="${pagination.totalPages}" /> <input type="hidden" name="pageNo"
	id="pageNo" value="${pagination.pageNo}" /> <c:import
	url="../include/pager.jsp" /></form>
